From: Dan Nicolaescu Date: Fri, 20 Aug 2010 23:02:11 +0000 (-0700) Subject: Remove unused variables malloc_sbrk_used and malloc_sbrk_unused. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~6892 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e4fc4c90cdcb010d1b61173efb284d2860dd89e5;p=emacs.git Remove unused variables malloc_sbrk_used and malloc_sbrk_unused. * src/alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove, write only. (init_alloc_once): Remove writes to malloc_sbrk_unused, and malloc_sbrk_used, nothing uses them. --- diff --git a/src/ChangeLog b/src/ChangeLog index 6b64beb0ca6..6469ad731b3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,10 @@ 2010-08-20 Dan Nicolaescu + * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove, + write only. + (init_alloc_once): Remove writes to malloc_sbrk_unused, and + malloc_sbrk_used, nothing uses them. + * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not defined, unconditionally defined in lisp.h. diff --git a/src/alloc.c b/src/alloc.c index 473c5622ab3..1f615a7d505 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -214,16 +214,6 @@ int abort_on_gc; int garbage_collection_messages; -#ifndef VIRT_ADDR_VARIES -extern -#endif /* VIRT_ADDR_VARIES */ -int malloc_sbrk_used; - -#ifndef VIRT_ADDR_VARIES -extern -#endif /* VIRT_ADDR_VARIES */ -int malloc_sbrk_unused; - /* Number of live and free conses etc. */ static int total_conses, total_markers, total_symbols, total_vector_size; @@ -6178,11 +6168,6 @@ init_alloc_once (void) consing_since_gc = 0; gc_cons_threshold = 100000 * sizeof (Lisp_Object); gc_relative_threshold = 0; - -#ifdef VIRT_ADDR_VARIES - malloc_sbrk_unused = 1<<22; /* A large number */ - malloc_sbrk_used = 100000; /* as reasonable as any number */ -#endif /* VIRT_ADDR_VARIES */ } void